﻿<Window x:Class="WpfApplication2.ConnectionWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Connect to Azure Hosted Services"   WindowStartupLocation="CenterScreen" ResizeMode="NoResize" ShowInTaskbar="False" Height="245" Width="565">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="120" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="36" />
            <RowDefinition Height="14" />
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
            <RowDefinition Height="50" />
        </Grid.RowDefinitions>
        <Border Background="{StaticResource PopupWindowHeaderBarBackground}" Grid.ColumnSpan="2" >
            <Grid Margin="2,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="30"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="30"/>
                </Grid.ColumnDefinitions>

                <TextBlock x:Name="TextBlockTitleName" Grid.Column="0" Grid.ColumnSpan="2" Text="Connection "   VerticalAlignment="Center"  Margin="5,0,0,0"  Foreground="White" FontSize="12" />
            </Grid>
        </Border>
        <TextBlock Grid.Row="2" Text="Subscription ID :" HorizontalAlignment="Right"  VerticalAlignment="Center"></TextBlock>
        <TextBox Grid.Row="2" Grid.Column="1"  x:Name="TextBoxSubscriptionID" Height="30" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5"></TextBox>
        <StackPanel Orientation="Horizontal" Grid.Row="3" Grid.Column="1">
        <TextBox Grid.Row="2" Grid.Column="1"  x:Name="TextBoxCertificatePath" Height="30" Width="350" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5"></TextBox>
            <Button Width="50" Height="25" x:Name="ButtonBrowse" Click="ButtonBrowse_Click" Content="_Browse.." ></Button>
        </StackPanel>
        <TextBlock Grid.Row="3" Text="Certificate file path :" HorizontalAlignment="Right"  VerticalAlignment="Center"></TextBlock>
        <TextBlock Grid.Row="4" Grid.Column="1" Margin="5,0,0,0" Text="Please make sure that the certificate selected is same as the certificate uploaded on " TextWrapping="Wrap" HorizontalAlignment="Left"  VerticalAlignment="Center" FontWeight="Bold"  FontStyle="Italic">
           <Hyperlink RequestNavigate="HandleRequestNavigate" Name="hl" NavigateUri="http://windows.azure.com" >Windows Azure Portal.</Hyperlink>
        </TextBlock>
       
        
        <Border Background="{StaticResource ThickBottomBar1}" Grid.Row="5" Grid.ColumnSpan="2" >
            <Border Background="{StaticResource ThickBottomBar2}">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition></ColumnDefinition>
                        <ColumnDefinition Width="110"></ColumnDefinition>
                        <ColumnDefinition Width="110"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <Button Grid.Row="0" Grid.Column="1" Width="100" Height="25" x:Name="ButtonConnect" Content="_Connect"  Click="ButtonConnect_Click"></Button>
                    <Button Grid.Row="0" Grid.Column="2" IsCancel="True" Width="100" x:Name="ButtonCancel" Height="25" Content="C_ancel" Click="ButtonCancel_Click"></Button>

                </Grid>
            </Border>
        </Border>
    </Grid>
</Window>
